<template>
	<view class="content">
		<view class="title FangZhengHanZhenGuangBiaoJianTi">东北街道党建整体情况</view>
		<view class="info-block">
			<view class="text">
				<mp-html :content="detail.content" v-if="detail.content"></mp-html>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		getPageDetailApi
	} from '@/api/community.js'
	export default {
		data() {
			return {
				detail: {
					content: ''
				}
			}
		},
		methods: {
			getDetailApi() {
				uni.showLoading({
					title: '加载中',
					mask: true
				})
				getPageDetailApi().then(data => {
					uni.hideLoading()
					this.detail = data
					console.log(this.detail)
				}).catch(() => {
					uni.hideLoading()
				})
			}
		},
		onLoad() {
			this.getDetailApi()
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		background-color: #BA1519;
		padding: 30rpx;
		min-height: 100vh;

		.title {
			height: 100rpx;
			text-align: center;
			color: #FBF2C3;
			padding-top: 30rpx;
			margin: 0 60rpx;
			background-image: url('/static/images/news/tips.png');
			background-size: 100% 100%;
			position: relative;
		}

		.info-block {
			background-color: #FDF1E4;
			padding: 30rpx;
			border-radius: 20rpx;
			margin-top: -68rpx;

			.text {
				text-indent: 40rpx;
				font-size: 30rpx;
				margin-top: 100rpx;
				line-height: 60rpx;
				color: #BA1519;
			}

		}
	}
</style>